package com.jvyou.app.ds.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 驾校系统常见问题表(Faq)表实体类
 *
 * @author 橘柚
 * @since 2025-04-20 12:16:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ds_faq")
public class Faq implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 问题分类ID
     */
    @TableField("category_id")
    private Long categoryId;

    /**
     * 问题分类名称
     */
    @TableField(exist = false)
    private String categoryName;


    /**
     * 问题内容
     */
    @TableField("question")
    private String question;

    /**
     * 问题答案
     */
    @TableField("answer")
    private String answer;

    /**
     * 浏览次数
     */
    @TableField("view_count")
    private Integer viewCount;
    /**
     * 点赞次数
     */
    @TableField("like_num")
    private Integer likeNum;
    /**
     * 点踩次数
     */
    @TableField("useless_num")
    private Integer uselessNum;

    /**
     * 是否热门问题0是1否
     */
    @TableField("is_hot")
    private String isHot;

    /**
     * 是否推荐0是1否
     */
    @TableField("is_recommend")
    private String isRecommend;

    /**
     * 排序权重(数字越小越靠前)
     */
    @TableField("sort_order")
    private Integer sortOrder;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 创建人
     */
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /**
     * 更新人
     */
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;


}
